import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex)
const stores = new Vuex.Store({
  state: {
    token: '',
    leftMenuActiveIndex:'0'
  },
  mutations: {
    freshtoken (state,newstate) {
      state.token=newstate;
    },
    activeIndex (state,newLeftMenuActiveIndex) {
      state.leftMenuActiveIndex=newLeftMenuActiveIndex;
    }

  }
})

export default{
  stores,
}
